import request from '@/utils/request'

// 查询数据地址列表
export function listDataAddress(query) {
  return request({
    url: '/mes/data/address/list',
    method: 'get',
    params: query
  })
}

// 查询数据地址详细
export function getDataAddress(id) {
  return request({
    url: '/mes/data/address/' + id,
    method: 'get'
  })
}

// 新增数据地址
export function addDataAddress(data) {
  return request({
    url: '/mes/data/address',
    method: 'post',
    data: data
  })
}

// 修改数据地址
export function updateDataAddress(data) {
  return request({
    url: '/mes/data/address',
    method: 'put',
    data: data
  })
}

// 删除数据地址
export function delDataAddress(id) {
  return request({
    url: '/mes/data/address/' + id,
    method: 'delete'
  })
}
